package com.ruoyi.project.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.mapper.ProjectTeamMembersMapper;
import com.ruoyi.project.domain.ProjectTeamMembers;
import com.ruoyi.project.service.IProjectTeamMembersService;

/**
 * 项目团队成员Service业务层处理
 * 
 * @author czj
 * @date 2025-01-06
 */
@Service
public class ProjectTeamMembersServiceImpl implements IProjectTeamMembersService 
{
    @Autowired
    private ProjectTeamMembersMapper projectTeamMembersMapper;

    /**
     * 查询项目团队成员
     * 
     * @param teamMemberId 项目团队成员主键
     * @return 项目团队成员
     */
    @Override
    public ProjectTeamMembers selectProjectTeamMembersByTeamMemberId(Long teamMemberId)
    {
        return projectTeamMembersMapper.selectProjectTeamMembersByTeamMemberId(teamMemberId);
    }

    /**
     * 查询项目团队成员列表
     * 
     * @param projectTeamMembers 项目团队成员
     * @return 项目团队成员
     */
    @Override
    public List<ProjectTeamMembers> selectProjectTeamMembersList(ProjectTeamMembers projectTeamMembers)
    {
        return projectTeamMembersMapper.selectProjectTeamMembersList(projectTeamMembers);
    }

    /**
     * 新增项目团队成员
     * 
     * @param projectTeamMembers 项目团队成员
     * @return 结果
     */
    @Override
    public int insertProjectTeamMembers(ProjectTeamMembers projectTeamMembers)
    {
        return projectTeamMembersMapper.insertProjectTeamMembers(projectTeamMembers);
    }

    /**
     * 修改项目团队成员
     * 
     * @param projectTeamMembers 项目团队成员
     * @return 结果
     */
    @Override
    public int updateProjectTeamMembers(ProjectTeamMembers projectTeamMembers)
    {
        return projectTeamMembersMapper.updateProjectTeamMembers(projectTeamMembers);
    }

    /**
     * 批量删除项目团队成员
     * 
     * @param teamMemberIds 需要删除的项目团队成员主键
     * @return 结果
     */
    @Override
    public int deleteProjectTeamMembersByTeamMemberIds(Long[] teamMemberIds)
    {
        return projectTeamMembersMapper.deleteProjectTeamMembersByTeamMemberIds(teamMemberIds);
    }

    /**
     * 删除项目团队成员信息
     * 
     * @param teamMemberId 项目团队成员主键
     * @return 结果
     */
    @Override
    public int deleteProjectTeamMembersByTeamMemberId(Long teamMemberId)
    {
        return projectTeamMembersMapper.deleteProjectTeamMembersByTeamMemberId(teamMemberId);
    }
}
